package com.atcumt.meituan;

import java.util.Scanner;

/* 
 * 输入：
 * 3
 * 2 1
 * 2 2
 * 2 3
 * 2 1 2
 */
public class Q6 {
    
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[][] base = new int[3][2];
        for(int i = 0; i < 3; i++) {
            base[i][0] = scanner.nextInt();
            base[i][1] = scanner.nextInt();
        }

        int[] distance = new int[3];
        for (int i = 0; i < 3; i++) {
            distance[i] = scanner.nextInt();
        }
        scanner.close();
    }
}
